package pl.kosmowska.ewelina.client.app.activity.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;
import com.google.web.bindery.requestfactory.shared.RequestFactory;

public class StockPlace extends Place  {

	@Prefix("InwestycjeGieldowe")
	public static class Tokenizer implements PlaceTokenizer<StockPlace> {

		private RequestFactory requestFactory;

		public Tokenizer(RequestFactory requestFactory) {
			this.requestFactory = requestFactory;
		}

		/**
		 * from - in app activated
		 */
		@Override 
		public String getToken(StockPlace place) {
			String token = place.getToken();
			return "";
		}

		/**
		 * from - url activated
		 */
		@Override
		public StockPlace getPlace(String token) {
			return new StockPlace();
		}

	}



	private String token;

	public StockPlace() {
	}

	public String getToken() {
		return token;
	}

}
